﻿// See https://aka.ms/new-console-template for more information
using DesignPatternsAndObjectManagement.Singletons;

SimpleSingleton singletonObject1 = SimpleSingleton.Instance;
SimpleSingleton singletonObject2 = SimpleSingleton.Instance;
SimpleSingleton singletonObject3 = SimpleSingleton.Instance;
SimpleSingleton singletonObject4 = SimpleSingleton.Instance;
SimpleSingleton singletonObject5 = SimpleSingleton.Instance;
SimpleSingleton singletonObject6 = SimpleSingleton.Instance;
SimpleSingleton singletonObject7 = SimpleSingleton.Instance;

Console.WriteLine($"{singletonObject1}: {singletonObject1.GetHashCode()}");
Console.WriteLine($"{singletonObject2}: {singletonObject2.GetHashCode()}");
Console.WriteLine($"{singletonObject3}: {singletonObject3.GetHashCode()}");
Console.WriteLine($"{singletonObject4}: {singletonObject4.GetHashCode()}");
Console.WriteLine($"{singletonObject5}: {singletonObject5.GetHashCode()}");
Console.WriteLine($"{singletonObject6}: {singletonObject6.GetHashCode()}");
Console.WriteLine($"{singletonObject7}: {singletonObject7.GetHashCode()}");